package com.cos.emp.services;

import com.cos.emp.entity.Emp;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2021/11/18 14:40
 * @description:
 */
public interface EmpServices {
    List<Emp> getAllEmp();
    /**
     *
     * @author: COS
     * @return:
     * @time: 2021/11/18 15:35
     * @description: 通过手机号查询用户数据
     */
    Emp getEmpByPhone(String phone);

    Emp login(String ename, String pwd);

    PageInfo<Emp> getEmpByPage(Integer pageIndex);

    boolean delEmp(Integer eno);

    boolean addEmp(Emp emp);

    Emp getEmpByEno(Integer eno);

    boolean updateEmp(Emp emp);
}
